package com.mt.service;

import com.mt.enums.FilmListType;
import com.mt.pojo.FilmComment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author Wang
 * @since 2020-11-18
 */
public interface FilmCommentService extends IService<FilmComment> {
    boolean checkUserIsComment(String userId, int filmId);

    boolean addFilmComment(FilmComment comment);
    List<FilmComment> pageCommentByFilmId(int currentPage, int pageSize, String userId, int filmId, FilmListType listType);

    boolean deleteComment(int CommentId);
    FilmComment getUserComments( String userId, int filmId);

}
